<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('| ', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <!-- enables nested comments in WP 2.7 -->
<?php wp_head(); //leave for plugins ?>
</head>

<body>
	<h1><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a><small> <?php bloginfo('description'); ?></small></h1>
	<?php if (have_posts()) : ?>
	<h2><?php $post = $posts[0]; ?><?php if (is_home()) { ?><?php _e('Home ','paranimage'); ?><?php } elseif (is_single() || is_page()) { ?><?php the_title(); ?><?php } elseif (is_category()) { ?><?php _e('Category: ','paranimage'); ?><?php echo single_cat_title(); ?><?php } elseif (is_day()) { ?><?php _e('Date Archive: ','paranimage'); ?><?php the_time('F jS, Y'); ?><?php } elseif (is_month()) { ?><?php _e('Date Archive: ','paranimage'); ?><?php the_time('F, Y'); ?><?php } elseif (is_year()) { ?><?php _e('Date Archive: ','paranimage'); ?><?php the_time('Y'); ?><?php } elseif (is_tag()) { ?><?php _e('Tag: ','paranimage'); ?><?php echo single_tag_title(); ?><?php } elseif (is_search()) { ?><?php _e('Search Results: ','paranimage'); ?><?php } elseif (is_author()) { ?><?php _e('Author Archive: ','paranimage'); ?><?php } elseif (is_404()) { ?><?php _e('Error 404 - Not Found ','paranimage'); ?><?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?><?php _e('Blog Archive: ','paranimage'); ?><?php } ?></h2>
	<?php while (have_posts()) : the_post(); ?>
	<?php if(!is_page()) { ?><h3><span><?php the_time('Y/m/d') ?> <!-- by <?php the_author() ?> --> &nbsp;&nbsp;</span><?php if(!is_single() && !is_page()) { ?><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><?php } ?> &nbsp;<small><?php comments_popup_link( __( 'Comments (0)', 'paranimage' ), __( 'Comments (1)', 'paranimage' ), __( 'Comments (%)', 'paranimage' ), 'comments-link', __('Comments closed', 'paranimage')); ?><?php edit_post_link( __('Edit'), ' - ', ''); ?></small></h3><?php } ?>
	<?php if (is_single() || is_page()) { ?><div class="entry"><?php the_content(); ?><?php wp_link_pages( __('before=<p>Pages: &after=</p>')); ?></div><?php } ?><?php if(is_single()) { ?><h4><?php the_tags( __('Tags: ', 'paranimage'), ", ", " <br />" ) ?><?php _e('Category: ', 'paranimage'); ?><?php the_category(', ') ?></h4><?php next_post_link('&laquo; %link &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;') ?><?php previous_post_link('%link &raquo;') ?><?php comments_template('', true); ?><?php } ?>
    <?php endwhile; ?>
	<?php if(!is_single() && !is_page()) { ?><h4><?php next_posts_link('&laquo; Older Entries&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;') ?><?php previous_posts_link('Newer Entries &raquo;') ?></h4><?php } ?>
	<?php else : ?>
	<h2><?php _e('The page you`re looking for doesn`t exist', 'paranimage'); ?></h2>
	<?php endif; ?>
	<p style="padding-top:20px;"><?php bloginfo('name'); ?> <?php _e('is proudly powered by', 'paranimage') ?> <a href="http://wordpress.org/">WordPress</a> <?php _e('Theme Design by','paranimage'); ?> <a href="http://paranimage.com/" title=""><?php _e('Paranimage','paranimage'); ?></a>	&#124; <a href="<?php bloginfo('rss2_url'); ?>"><?php _e('Entries (RSS)', 'paranimage'); ?></a> &#124; <a href="<?php bloginfo('comments_rss2_url'); ?>"><?php _e('Comments (RSS)', 'paranimage'); ?></a><!--<?php _e('Page generated in', 'paranimage'); ?> <?php timer_stop(1); ?> <?php _e('seconds', 'paranimage') ?>.--><?php wp_footer(); //leave for plugins ?></p>
</body>
</html>

